package jin.si.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * ClassName:jsFabulous
 * Package:jin.si.pojo
 * Description:
 *
 * @Date:2022/3/14 11:56
 * @Author: XJR
 */
public class JsFabulous {
    private Integer id;
    private Integer userId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date likeTime;
    private Integer type;
    private Integer bePraisedId;

    public JsFabulous() {
        super();
    }

    public JsFabulous(Integer id, Integer userId, Date likeTime, Integer type, Integer bePraisedId) {
        this.id = id;
        this.userId = userId;
        this.likeTime = likeTime;
        this.type = type;
        this.bePraisedId = bePraisedId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getLikeTime() {
        return likeTime;
    }

    public void setLikeTime(Date likeTime) {
        this.likeTime = likeTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getBePraisedId() {
        return bePraisedId;
    }

    public void setBePraisedId(Integer bePraisedId) {
        this.bePraisedId = bePraisedId;
    }

    @Override
    public String toString() {
        return "jsFabulous{" +
                "id=" + id +
                ", userId=" + userId +
                ", likeTime=" + likeTime +
                ", type=" + type +
                ", bePraisedId=" + bePraisedId +
                '}';
    }
}
